package Editor 
{
	import com.greensock.TweenLite;
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	
	/**
	 * ...
	 * @author Serg de Adelantado
	 */
	public class RegionPoint extends Sprite 
	{		
		public function RegionPoint() 
		{
			graphics.beginFill(0, 1);
			graphics.drawCircle(0, 0, 5);
			graphics.endFill();
			alpha = 0.5;
			addEventListener(MouseEvent.MOUSE_OVER, OnMouseOver);
			addEventListener(MouseEvent.MOUSE_OUT, OnMouseOut);
		}
		
		private function OnMouseOver(e:MouseEvent):void 
		{
			TweenLite.to(this, 0.5, { alpha:1 } );
		}
		
		private function OnMouseOut(e:MouseEvent):void 
		{
			TweenLite.to(this, 0.5, { alpha:0.5 } );
		}
	}
}